Skip to content

Use agentic file reading for large diffs instead of skipping#19

Merged
matej merged 1 commit intomatej/add-diff-size-limitsfrom
neon/diff-limits-suggesions
Feb 6, 2026
Merged

Use agentic file reading for large diffs instead of skipping#19
matej merged 1 commit intomatej/add-diff-size-limitsfrom
neon/diff-limits-suggesions

Conversation

@neonspectra
Copy link
Copy Markdown
Collaborator

Instead of skipping reviews when the diff exceeds max-diff-lines,
switch to agentic mode where Claude reads files on-demand. This
ensures large PRs still get reviewed while managing context limits.

Changes:

  • Large diffs trigger agentic mode instead of skipping review
  • max-diff-lines=0 now forces agentic mode (always read files)
  • Updated prompts to give Claude clear file reading instructions
  • Preserved existing fallback for PROMPT_TOO_LONG errors

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com"

  Instead of skipping reviews when the diff exceeds max-diff-lines,
  switch to agentic mode where Claude reads files on-demand. This
  ensures large PRs still get reviewed while managing context limits.

  Changes:
  - Large diffs trigger agentic mode instead of skipping review
  - max-diff-lines=0 now forces agentic mode (always read files)
  - Updated prompts to give Claude clear file reading instructions
  - Preserved existing fallback for PROMPT_TOO_LONG errors

  Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>"
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found. Changes look good.

@matej matej merged commit 9c0d47c into matej/add-diff-size-limits Feb 6, 2026
2 checks passed
@matej matej deleted the neon/diff-limits-suggesions branch February 6, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants